/*
 * Description: 公共头文件
 */
#include <Windows.h>
#include <string>
#include "log.h"

#define SAFE_CLOSE_HANDLE(handle, defaultValue) \
if ((handle) != (defaultValue)) {           \
    CloseHandle(handle);                    \
    (handle) = (defaultValue);              \
}